package com.example.validatestudy.demos.packaging;

/**
 * @auther: 王振方
 * @date: 2024 01 30 21 29
 * @description:
 */
public class Bird  implements Fly {


    protected void sing() {
        System.out.println("小鸟唱歌");
    }

    /**
     * 接口的方法只能是public
     */
    @Override
    public void fly() {
        System.out.println("小鸟飞");
    }
}
